**// Comparison of Sample Means for Z&H
clear
use "C:\Users\Samangi\Documents\Datasets\Chapter Three\Z&Hcompetition.dta"
set more off
gen double lnobs = ln(Samplesize)
**// unweighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal    

**//weighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal [aweight=investperst]       



**// Comparison of Sample Means for Repetition
clear
use "C:\Users\Samangi\Documents\Datasets\Chapter Three\598_Rep.dta"
set more off
gen double lnobs = ln(Samplesize)
**// unweighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal 

**// weighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal [aweight=investperst]

